* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* 头部背景图容器 */
.header {
    position: relative;
    height: 100px;
    background-image: url(../images/首页栏1.png);
    background-size: cover;
    background-position: left;
    display: flex;
    align-items: center;
}

/* 内容层 */
.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

/* 搜索栏容器 */
.search-container {
    flex: 1;
    margin: 0 40px;
    position: relative;
}

/* 搜索栏 - 左侧对齐黄金分割线 */
.search-box {
    position: absolute;
    width: 25%; /* 占页面宽度的1/4 */
    left: 70%; /* 搜索栏左侧对齐黄金分割线 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 只垂直偏移，保持水平位置不变 */
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.search-box:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 右侧时间显示 */
.time-display {
    color: white;
    margin-right: 65px;
    text-align: right;
    min-width: 300px;
}

.date-line {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 550;
}

.lunar-date {
    font-size: 16px;
    font-weight: 400;
}

/* 透明覆盖层 */
.floating-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* 40% 透明度 */
    z-index: 1;
} 

/* 主要内容区域 - 图片轮播 */
.main-content {
    position: relative;
    height: calc(100vh - 100px);
    overflow: hidden;
}

/* 图片容器 */
.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 所有图片链接 */
.slide-link {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* 确保不可见的图片不能被点击 */
    pointer-events: none;
}

/* 当前显示的图片链接 */
.slide-link.active {
    opacity: 1;
    pointer-events: auto; /* 激活的图片可以被点击 */
}

/* 图片元素 */
.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: block;
}

/* 圆点指示器容器 */
.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

/* 圆点样式 */
.dot {
    width: 20px;
    height: 20px;
    background-color: #DE9960; /* 默认颜色 */
    clip-path: path('M10,0 C15,0 20,5 20,10 C20,15 15,20 10,20 C5,20 0,15 0,10 C0,5 5,0 10,0 Z M8,6 L12,10 L8,14 L10,16 L14,12 L10,8 Z'); /* 中国结形状 */
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* 激活状态的圆点 */
.dot.active {
    background-color: #6D281D; /* 激活颜色 */
}

/* 悬浮矩形框 */
.floating-box {
    position: absolute;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: rgba(222, 186, 153, 0.);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    z-index: 10;
}

/* 导航项目样式 */
.nav-item {
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

/* 鼠标悬浮效果 */
.nav-item:hover {
    color: #6D281D !important;
}